---
description: Steps required to deploy SaaS Boilerplate infrastructure on AWS
---

import ProjectName from '../../shared/components/ProjectName.component';

# Step 4: Deploy infrastructure

## Switch context to proper environment stage

Run the following command that will switch context to specific environment stage.

```shell
saas aws set-env [STAGE_NAME]
```

## Deploy the infrastructure

Deploy an actual infrastructure of your app by running following command:

```shell
pnpm saas infra deploy
```

This command will run CDK deployment of all environment specific infrastructure components like: database, CI/CD.
